//
//  KABMallShoCarHeaderHFView.h
//  kabu
//
//  Created by XiangDongMBP on 2017/2/20.
//  Copyright © 2017年 East. All rights reserved.
//

#import <UIKit/UIKit.h>

@class KABMallShoCarHeaderHFView;
@protocol KABMallShoCarHeaderHFViewDelegate <NSObject>
@optional
- (void)kABMallShoCarHeaderHFView:(KABMallShoCarHeaderHFView *)view section:(NSInteger)section selBtnTapped:(UIButton *)btn;
- (void)kABMallShoCarHeaderHFView:(KABMallShoCarHeaderHFView *)view section:(NSInteger)section delBtnTapped:(UIButton *)btn;
@end

@class KABMallProDetail;
@interface KABMallShoCarHeaderHFView : UITableViewHeaderFooterView

@property (weak, nonatomic) IBOutlet UIButton *selectBtn;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *selBtnWidthConstraint;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UIButton *deleteBtn;
@property (weak, nonatomic) IBOutlet UILabel *stateLabel;

@property (assign, nonatomic) NSInteger section;
@property (weak,   nonatomic) id<KABMallShoCarHeaderHFViewDelegate>delegate;

- (void)configViewWithProDetail:(KABMallProDetail *)product couldSel:(BOOL)couldSel wholeSel:(BOOL)wholeSel;

@end

@class KABMallOrderDetail;
@interface KABMallShoCarHeaderHFView (MallOrderRelative)
- (void)configViewWithOrderDetail:(KABMallOrderDetail *)order couldSel:(BOOL)couldSel wholeSel:(BOOL)wholeSel;
@end
